<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
       xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="layout :: htmlhead" th:with="title='用户管理'"></head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!--头-->
    <div th:replace="fragments/head :: header"></div>

    <div class="layui-body" style="margin: 1%">
        <form id="userSearch" class="layui-form layui-form-pane" method="post" action="" style="margin-top: 20px;">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">时间</label>
                    <div class="layui-input-inline" style="width: 175px;">
                        <input name="createDateStart" id="createDateStart" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input" type="text"/>
                    </div>
                    <div class="layui-form-mid">-</div>
                    <div class="layui-input-inline" style="width: 175px;">
                        <input name="createDateEnd" id="createDateEnd" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input" type="text"/>
                    </div>
                    <label class="layui-form-label">结果</label>
                    <div class="layui-input-inline">
                        <div class="layui-form" lay-filter="myDiv">
                            <select name="success" id="success" lay-filter="mySelect">
                                <option value="">-选择-</option>
                                <option value="false">失败</option>
                                <option value="true">成功</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">用户</label>
                <div class="layui-input-inline">
                    <input id="appuser" name="appuser" autocomplete="off" class="layui-input" type="text"/>
                </div>
                <label class="layui-form-label">uri</label>
                <div class="layui-input-inline">
                    <input id="uri" name="uri" autocomplete="off" class="layui-input" type="text"/>
                </div>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                <button class="layui-btn"  lay-submit="" lay-filter="searchSubmit">提交</button>
            </div>
        </form>

        <!--<hr class="layui-bg-blue"/>-->
        <hr class="layui-bg-black"/>
        <table id="crmReqLogList" lay-filter="crmReqLogTable"></table>
        <script type="text/html" id="isSuccessTpl">
            {{#  if(d.success){ }}
            <font color="green">成功</font>
            {{#  } else { }}
            <font color="red">失败</font>
            {{#  } }}
        </script>
        <script type="text/html" id="optBar">
            <shiro:hasPermission name="delCrmReqLog">
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
            </shiro:hasPermission>
            <shiro:hasPermission name="showCrmReqData">
                <a class="layui-btn layui-btn-xs" lay-event="showCrmReqData">请求数据</a>
            </shiro:hasPermission>
            <shiro:hasPermission name="showCrmContent">
                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="showCrmContent">返回内容</a>
            </shiro:hasPermission>
        </script>
    </div>

    <!--查看日志-->
    <div id="showLog" class="layer_self_wrap" style="width:300px;height:290px;display:none;text-align: center">
        <form id="shopForm" class="layui-form layui-form-pane" method="post" action="" style="margin-top: 5px;">
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <textarea id="logContent" disabled="disabled" style="width:530px;height:220px"/>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block" style="margin-left: 180px;">
                    <button lay-filter="close" class="layui-btn layui-btn-primary">关闭</button>
                </div>
            </div>
        </form>
    </div>

    <!--底部-->
    <div th:replace="fragments/footer :: footer"></div>
    <script th:src="@{/js/dateUtils.js}"></script>
    <script th:src="@{/js/biz/log/crmReqLogList.js}"></script>

</div>
</body>
</html>